<!--
 * @Author: LiZhiWei
 * @Date: 2025-07-14 08:58:30
 * @LastEditors: wjc
 * @LastEditTime: 2025-10-28 10:59:32
 * @Description: 
-->
<template>
  <EditorEmbed :entity="entity" :request-url="requestUrl" :message="message" />
</template>

<script setup lang="ts">
  import { api } from '#/api'

  defineOptions({
    name: 'MeAvatar',
  })

  const props = withDefaults(
    defineProps<{
      entity?: string
    }>(),
    {
      entity: '',
    }
  )

  const message = '修改成功'

  const requestUrl = ref({
    edit: api[props.entity].avatar,
    update: api[props.entity].avatar,
  })
</script>
